<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/commons/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>生成静态站点</title>
<link href="${ctx}/style/css_member.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx}/js/common.js"></script>
<script type="text/javascript" src="${ctx}/js/jquery-1.3.2.js"></script>
<script language="javascript" type="text/javascript" src="${ctx}/js/My97DatePicker/WdatePicker.js"></script>
<style type="text/css">
#main{width: 960px;margin: 0 auto;background: #ffffff;min-height: 400px;}
#left{width:100px;float: left;padding: 5px 10px;background: #f0f0f0;min-height: 400px;}
#right{width:800px;float: left;}
.title_publish{font-weight: bold;font-size: 16px;color: blue;}
.menu_publish{margin: 0;padding: 0;font-size: 12px;list-style: none;}
.menu_publish li{line-height: 25px;margin: 0 ;cursor: pointer;}
.menu_publish li:HOVER{line-height: 25px;margin: 0 ;cursor: pointer;text-decoration: underline;color: blue;}
#messageDiv{width: 400px;margin: 0 auto;padding-top: 50px;font-size: 14px;}
</style>
   <script type="text/javascript">
	$(function(){
		$(".menu_publish>li").click(function(){
			var id = $(this).attr("id");
			var action_url = "";
			if(id == "li_1"){
				action_url = "${ctx }/back/generateHtmlAction!index.do";
			}
			else if(id == "li_2"){
				action_url = "${ctx }/back/generateHtmlAction!painterStar.do";
			}
			else if(id == "li_3"){
				action_url = "${ctx }/back/generateHtmlAction!marketIndex.do";
			}
			else if(id == "li_4"){
				action_url = "${ctx }/back/generateHtmlAction!ciyi.do";
			}
			else if(id == "li_5"){
				action_url = "${ctx }/back/generateHtmlAction!ddhj.do";
			}
			$("#generateForm").attr("action",action_url);
			var title = $(this).attr("title");
			$("#capation_title").html(title);
			$("#messageDiv").html("");
		});

		$("#btn_generate").click(function(){
			$("#tipsDiv").show();
			$("#generateForm").submit();
		});
	});	

   </script>
</head>
<body>

<jsp:include page="/commons/head_member.jsp"></jsp:include>
	<div id="main">
		<div id="left">
			<h2 class="title_publish">发布站点</h2>
			<ul class="menu_publish">
				<li id="li_1" title="发布首页">发布首页</li>
				<li id="li_2" title="发布名家频道">发布名家频道</li>
				<li id="li_3" title="发布书画行情">发布书画行情</li>
				<li id="li_4" title="发布瓷艺频道">发布瓷艺</li>
				<li id="li_5" title="发布当代画家频道">发布当代画家</li>
			</ul>
		</div>
		<div id="right">
			<div id="capation_title" style="margin: 50px 0px 30px 0px;text-align: center;width: 500px;font-size: 18px;font-weight: bold;">
				发布站点
			</div>
			<form action="" method="post" id="generateForm">
				<div style="width: 500px;margin: 0 auto;">
					开始时间：<input name="startDate" type="text" size="15" onClick="WdatePicker()" value="<fmt:formatDate value='${startDate }' pattern='yyyy-MM-dd'/>">&nbsp;&nbsp;
					<span style="padding-left: 100px;">
						<input name="btn_generate" id="btn_generate" value="开始发布" style="padding: 5px;cursor: pointer;" type="button"/>
					</span>
              	</div>
              	<div style="font-size: 12px;width: 600px;margin: 0 auto;color: red;padding-top: 5px;line-height: 25px;">（注：开始时间表示作品的最后修改时间。点击“开始发布”按钮后，将发布最后修改时间为“开始时间”至当前时间的所有作品）</div>
             </form>
			<div id="messageDiv">
				${requestScope.returnMsg }
			</div>
		</div>
		<div style="clear: both;"></div>
	</div>
<jsp:include page="/commons/foot_member.jsp"></jsp:include>
<div style="position: absolute;z-index: 10;width: 300px;height: 100px;display: none;line-height:100px;text-align:center;
	left:40%;top: 250px;color: #D20404;font-size: 14px;background: #d0d0d0" id="tipsDiv">
站点正在发布中,请稍候...
</div>
</body>
</html>